package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_concept_detail")
public class FConceptDetail {
    @Id
    private Long tid;

    /**
     * 概念代码
     */
    private String id;

    /**
     * 概念名称
     */
    @Column(name = "concept_name")
    private String conceptName;

    /**
     * 股票代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 股票名称
     */
    private String name;

    /**
     * 纳入日期
     */
    @Column(name = "in_date")
    private String inDate;

    /**
     * 剔除日期
     */
    @Column(name = "out_date")
    private String outDate;

    public FConceptDetail(Long tid, String id, String conceptName, String tsCode, String name, String inDate, String outDate) {
        this.tid = tid;
        this.id = id;
        this.conceptName = conceptName;
        this.tsCode = tsCode;
        this.name = name;
        this.inDate = inDate;
        this.outDate = outDate;
    }

    public FConceptDetail() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取概念代码
     *
     * @return id - 概念代码
     */
    public String getId() {
        return id;
    }

    /**
     * 设置概念代码
     *
     * @param id 概念代码
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取概念名称
     *
     * @return concept_name - 概念名称
     */
    public String getConceptName() {
        return conceptName;
    }

    /**
     * 设置概念名称
     *
     * @param conceptName 概念名称
     */
    public void setConceptName(String conceptName) {
        this.conceptName = conceptName;
    }

    /**
     * 获取股票代码
     *
     * @return ts_code - 股票代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置股票代码
     *
     * @param tsCode 股票代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取股票名称
     *
     * @return name - 股票名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置股票名称
     *
     * @param name 股票名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取纳入日期
     *
     * @return in_date - 纳入日期
     */
    public String getInDate() {
        return inDate;
    }

    /**
     * 设置纳入日期
     *
     * @param inDate 纳入日期
     */
    public void setInDate(String inDate) {
        this.inDate = inDate;
    }

    /**
     * 获取剔除日期
     *
     * @return out_date - 剔除日期
     */
    public String getOutDate() {
        return outDate;
    }

    /**
     * 设置剔除日期
     *
     * @param outDate 剔除日期
     */
    public void setOutDate(String outDate) {
        this.outDate = outDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", id=").append(id);
        sb.append(", conceptName=").append(conceptName);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", name=").append(name);
        sb.append(", inDate=").append(inDate);
        sb.append(", outDate=").append(outDate);
        sb.append("]");
        return sb.toString();
    }
}